/**
 * @Author: yzy
 * @Description:
 * @Version: 1.0.0
 * @Date: 2021/7/9 15:55
 * @Copyright: MIN-Group；国家重大科技基础设施——未来网络北大实验室；深圳市信息论与未来网络重点实验室
 */
package analysisrouter

import (
	"vpn-management-server/src/controller/analysiscontroller"
	"vpn-management-server/src/interceptor/analysisinterceptor"
	"vpn-management-server/src/router/routermodel"
)

var analysisRouter = routermodel.NewRouter()

func init() {
	analysisRouter.RegisterHandleSet("getUGroupDataAnalysis", analysisinterceptor.GetUGroupDataAnalysisValidator, analysiscontroller.GetUGroupDataAnalysis, nil)
	analysisRouter.RegisterHandleSet("getDataAnalysis", analysisinterceptor.GetDataAnalysisValidator, analysiscontroller.GetDataAnalysis, nil)
	analysisRouter.RegisterHandleSet("getUGroupLogAnalysis", analysisinterceptor.GetUGroupDataAnalysisValidator, analysiscontroller.GetUGroupLogAnalysis, nil)
	analysisRouter.RegisterHandleSet("getLogAnalysis", analysisinterceptor.GetDataAnalysisValidator, analysiscontroller.GetLogAnalysis, nil)
	analysisRouter.RegisterHandleSet("getAnalysisInfos", analysisinterceptor.GetAnalysisInfosValidator, analysiscontroller.GetAnalysisInfos, nil)

	analysisRouter.RegisterHandleSet("getLogsAnalysisByUser", analysisinterceptor.GetLogsAnalysisValidator, analysiscontroller.GetLogsAnalysisByUser, nil)
	analysisRouter.RegisterHandleSet("getLogsAnalysisByUserAndUGroupID", analysisinterceptor.GetUGroupLogsAnalysisValidator, analysiscontroller.GetLogsAnalysisByUserAndUGroupID, nil)
	analysisRouter.RegisterHandleSet("getLogsAnalysisByWebsite", analysisinterceptor.GetLogsAnalysisValidator, analysiscontroller.GetLogsAnalysisByWebsite, nil)
	analysisRouter.RegisterHandleSet("getLogsAnalysisByWebsiteAndUGroupID", analysisinterceptor.GetUGroupLogsAnalysisValidator, analysiscontroller.GetLogsAnalysisByWebsiteAndUGroupID, nil)

}
